namespace RAG.Domain.Configuration;

public class DeepSeekApiSettings
{
    public string ChatUrl { get; set; } = default!;
    public string ApiKey { get; set; } = default!;
    public string Model { get; set; } = default!;
    public double Temperature { get; set; } = 0.7;
    public int MaxTokens { get; set; } = 800;
    public double TopP { get; set; } = 1.0;
    public double PresencePenalty { get; set; } = 0.0;
    public double FrequencyPenalty { get; set; } = 0.0;
    public int TimeoutMs { get; set; } = 20000; // 请求整体超时
    public int MaxRetry { get; set; } = 1; // 失败重试次数
    public bool EnableAnswerCache { get; set; } = true; // 全局开关（与服务内局部缓存配合）
}
